package com.home.security.browser.manager.session;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * Description: 登录记录
 * Created by 王大宸 on 2020-10-08 20:33
 * Created with IntelliJ IDEA.
 */
@Table(name = "base_login_record")
public class SysLoginRecord implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    private String id;


    /**
     * 回话id
     */
    @Column(name = "session_id")
    private String sessionId;

    /**
     * 姓名
     */
    @Column(name = "name")
    private String name;


    /**
     * 登录账号
     */
    @Column(name = "login_name")
    private String loginName;


    /**
     * 登录IP地址
     */
    @Column(name = "ipaddr")
    private String ipaddr;


    /**
     * 登录地点
     */
    @Column(name = "login_location")
    private String loginLocation;


    /**
     * 浏览器类型
     */
    @Column(name = "browser")
    private String browser;


    /**
     * 操作系统
     */
    @Column(name = "os")
    private String os;


    /**
     * 登录状态（0成功 1失败）
     */
    @Column(name = "status")
    private String status;


    /**
     * 提示消息
     */
    @Column(name = "msg")
    private String msg;


    /**
     * 访问时间
     */
    @Column(name = "login_time")
    private LocalDateTime loginTime;

    /**
     * 客户端id
     */
    @Column(name = "client_id")
    private String clientId;

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setIpaddr(String ipaddr) {
        this.ipaddr = ipaddr;
    }

    public String getIpaddr() {
        return ipaddr;
    }

    public void setLoginLocation(String loginLocation) {
        this.loginLocation = loginLocation;
    }

    public String getLoginLocation() {
        return loginLocation;
    }

    public void setBrowser(String browser) {
        this.browser = browser;
    }

    public String getBrowser() {
        return browser;
    }

    public void setOs(String os) {
        this.os = os;
    }

    public String getOs() {
        return os;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public void setLoginTime(LocalDateTime loginTime) {
        this.loginTime = loginTime;
    }

    public LocalDateTime getLoginTime() {
        return loginTime;
    }
    
}
